package cn.wolfcode.trip.admin.controller;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Copyright: Copyright (c) 2019 Super520
 * 描述：用户信息控制器
 *
 * @package: cn.wolfcode.trip.admin.controller
 * @author: Patch
 * @date: 2019/5/18 20:19
 * 总结:
 */
@Controller
@RequestMapping("user")
public class UserController {
    @Autowired
    private IUserService userService;

    @RequestMapping("list")
    public String list(Model model,@ModelAttribute("qo") QueryObject qo) {
        model.addAttribute("pageInfo", userService.query(qo));
        return "user/list";
    }
}
